﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
//Xna
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;
using Microsoft.Xna.Framework.Net;
using Microsoft.Xna.Framework.Storage;

namespace Puzzle_3D
{
    class Puzzle_MenuEntry
    {
        private String name;
        private Vector2 position;
        private Texture2D texture;
        private Texture2D hoverTexure;
        private bool entryIsActive;

        public Puzzle_MenuEntry(String _name, Vector2 _position, Texture2D _texture, Texture2D _hoverTexture)
        {
            this.name = _name;
            this.position = _position;
            this.texture = _texture;
            this.hoverTexure = _hoverTexture;
            this.entryIsActive = false;
        }

        public Rectangle getEntryRectangle(bool _isDrawing)
        {
            if (_isDrawing)
                return new Rectangle((int)this.position.X, (int)this.position.Y, this.texture.Width, this.texture.Height);
            else
                return new Rectangle((int)this.position.X, (int)this.position.Y, 70, 50);
        }

        public Vector2 getPosition()
        {
            return this.position;
        }

        public String getName()
        {
            return this.name;
        }

        public Texture2D getTexture()
        {
            return this.texture;
        }

        public Texture2D getHoverTexture()
        {
            return this.hoverTexure;
        }

        public bool activeEntry
        {
            get
            {
                return this.entryIsActive;
            }
            set
            {
                this.entryIsActive = value;
            }
        }
    }
}